	<div align="right"><{$catnavbar}></div>
<table border="0" width="90%" cellspacing="1" cellpadding="0" align="center" class = "outer">
	<tr>
		<td align="left" class="itemHead"><b><{$lang_category_column}></b></td>
		<{if $displayarticlescount}>
			<td align="left" width="70px" class="itemHead"><b><{$lang_items}></b></td>
		<{/if}>
		<{if $displaylastitem == 1}>
			<td align="left" width="40%" class="itemHead"><b><{$lang_last_publisher}></b></td>
		<{/if}>
	</tr>

	<!-- Start categories loop -->
	<{foreach item=category from=$categories}>
		<tr>
			<td class="even" align="left">
				<{if $category.image_path}>
					<{if $isAdmin == 1}>
						<a href="<{$publisher_url}>/admin/category.php?op=mod&categoryid=<{$category.categoryid}>"><img src="<{$category.image_path}>" title="<{$lang_editcategory}>" alt="<{$lang_editcategory}>"/></a>&nbsp;
					<{else}>
						<img src="<{$category.image_path}>" alt="<{$category.name}>" />&nbsp;
					<{/if}>
				<!-- End with a selected image path -->
				<{else}>
				<!-- Start without a selected image path -->
					<{if $isAdmin == 1}>
						<a href="<{$publisher_url}>/admin/category.php?op=mod&categoryid=<{$category.categoryid}>"><img src="<{$publisher_url}>/images/icon/cat.gif" title="<{$lang_editcategory}>" alt="<{$lang_editcategory}>"/></a>&nbsp;
					<{else}>
						<img src="<{$publisher_url}>/images/icon/cat.gif" alt="<{$category.name}>" />&nbsp;
					<{/if}>
				<!-- End without a selected image path -->
				<{/if}>

				<{if $selected_category == $category.categoryid}>
					<b><{$category.name}></b>
				<{else}>
					<b><{$category.categorylink}></b>
				<{/if}>

	  		    <br />
				<span class="publisher_category_dsc"><{$category.description}></span>
				</td>
			 	<{if $displayarticlescount}>
				 	<td class="even" align="center">
				 		<{if $category.total != 0}>
				 			<{$category.total}>
				 		<{/if}>
				 	</td>
				 <{/if}>
				<{if $displaylastitem == 1}>
					<td class="even" align="right"><{$category.last_title_link}></td>
				<{/if}>
			</tr>
			<{if $category.subcats}>
		  		<{foreach item=subcat from=$category.subcats}>
					<tr>
	  					<td class="odd" align="left">
	  						<div style="padding-left: 10px;">
							<{if $subcat.image_path}>
	  							<{if $isAdmin == 1}>
	 	 							<a href="<{$publisher_url}>/admin/category.php?op=mod&categoryid=<{$subcat.categoryid}>"><img src="<{$subcat.image_path}>" title="<{$lang_editcategory}>" alt="<{$lang_editcategory}>" alt="<{$lang_editcategory}>"/></a>&nbsp;<{$subcat.categorylink}>
								<{else}>
			  						<img src="<{$subcat.image_path}>" title="<{$lang_editcategory}>" alt="<{$lang_editcategory}>"/>&nbsp;<{$subcat.categorylink}>
								<{/if}>
							<!-- End with a selected image path -->
							<{else}>
							<!-- Start without a selected image path -->
	  							<{if $isAdmin == 1}>
	 	 							<a href="<{$publisher_url}>/admin/category.php?op=mod&categoryid=<{$subcat.categoryid}>"><img src="<{$publisher_url}>/images/icon/subcat.gif" title="<{$lang_editcategory}>" alt="<{$lang_editcategory}>" alt="<{$lang_editcategory}>"/></a>&nbsp;<{$subcat.categorylink}>
								<{else}>
			  						<img src="<{$publisher_url}>/images/icon/subcat.gif" title="<{$lang_editcategory}>" alt="<{$lang_editcategory}>"/>&nbsp;<{$subcat.categorylink}>
								<{/if}>
								<{if $displaysubcatdsc == 1}>
									<span class="publisher_category_dsc"><{$subcat.description}></span>
								<{/if}>
							<{/if}>
							</div>
						</td>
						<{if $displayarticlescount}>
							<td class="odd" align="center"><{$subcat.total}></td>
						<{/if}>
						<{if $displaylastitem == 1}>
							<td class="odd" align="right"><{$subcat.last_title_link}></td>
						<{/if}>
					</tr>
				<{/foreach}>
			<{/if}>
		<{/foreach}>
	<!-- End categories loop -->
</table>
	<div align="right"><{$catnavbar}></div>
<!-- End sub categories loop -->
